package com.ruike.alisurface.bean;

import java.util.List;

/**
 * 按照货道下单对象
 *
 * @author voodoo
 * @createDate 2022/12/24 024下午 01:10
 */
public class CreateOrderByProductBean {

    /**
     * mchid : 6377025350405688
     * details : [{"productid":"00ef8256-e828-4c21-bfa9-0dfaa3609835","quantity":1,"slotIndexs":[1]}]
     * currency :""
     * mchVerion :""
     */

    private String mchid;
    private String currency;
    private String mchVerion;
    private List<DetailsBean> details;

    public String getMchid() {
        return mchid;
    }

    public void setMchid(String mchid) {
        this.mchid = mchid;
    }

    public String getCurrency() {
        return currency;
    }

    public void setCurrency(String currency) {
        this.currency = currency;
    }

    public String getMchVerion() {
        return mchVerion;
    }

    public void setMchVerion(String mchVerion) {
        this.mchVerion = mchVerion;
    }

    public List<DetailsBean> getDetails() {
        return details;
    }

    public void setDetails(List<DetailsBean> details) {
        this.details = details;
    }

    public static class DetailsBean {
        /**
         * productid : 00ef8256-e828-4c21-bfa9-0dfaa3609835
         * quantity : 1
         * slotIndexs : [1]
         */

        private String productid;
        private int quantity;
        private List<Integer> slotIndexs;

        public String getProductid() {
            return productid;
        }

        public void setProductid(String productid) {
            this.productid = productid;
        }

        public int getQuantity() {
            return quantity;
        }

        public void setQuantity(int quantity) {
            this.quantity = quantity;
        }

        public List<Integer> getSlotIndexs() {
            return slotIndexs;
        }

        public void setSlotIndexs(List<Integer> slotIndexs) {
            this.slotIndexs = slotIndexs;
        }

        @Override
        public String toString() {
            return "DetailsBean{" +
                    "productid='" + productid + '\'' +
                    ", quantity=" + quantity +
                    ", slotIndexs=" + slotIndexs +
                    '}';
        }
    }

    @Override
    public String toString() {
        return "CreateOrderByProductBean{" +
                "mchid='" + mchid + '\'' +
                ", currency='" + currency + '\'' +
                ", mchVerion='" + mchVerion + '\'' +
                ", details=" + details +
                '}';
    }
}
